<template>
  <el-container>
      <el-aside width="auto">
          <Aside />
      </el-aside>
      <el-container>
          <el-header>
              <Header />
          </el-header>
          <el-main id="el-main">
              <div class="router-view">
                  <router-view></router-view>
              </div>
          </el-main>
      </el-container>
  </el-container>
</template>

<script setup>
import Aside from '../components/AsideNav.vue'
import Header from '../components/HeaderNav.vue'
</script>

<style lang="scss" scoped>
.el-container {
    height: 100vh;
    
    .el-aside {
        height: 100%;
        background-color: rgb(28, 28, 28);
    }

    :deep(.el-menu) {
        height: 100%;
        border: none;
    }

    .el-container {
        height: 100%;
        background-color: #f8f8fa;

        .el-header {
            padding: 0px;
            height: 50px;
            margin: 0px;
            background-color: #ececf1;
            color: #525f80;
        }

        .el-main {
            height: 100%;

            .router-view {
                height: 90%;
            }
        }
    }
}

.el-menu-vertical-demo:not(.el-menu--collapse) {
    width: 240px;
    min-height: 400px;
}

.router-view {
    margin: auto;
    margin-top: 20px;
}
</style>